<<<<<<< HEAD
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Basic Layout - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="./css/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="./css/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="./css/index.css">
    <script type="text/javascript" src="./js/jquery.min.js"></script>
    <script type="text/javascript" src="./js/jquery.easyui.min.js"></script>
</head>

<body>

    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north'" style="height:50px">

            <div class="easyui-panel" style="padding:5px;">
                <a href="#" class="easyui-linkbutton" data-options="plain:true">Home</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">Edit</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">Help</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">About</a>
            </div>
            <div id="mm1" style="width:150px;">
                <div data-options="iconCls:'icon-undo'">Undo</div>
                <div data-options="iconCls:'icon-redo'">Redo</div>
                <div class="menu-sep"></div>
                <div>Cut</div>
                <div>Copy</div>
                <div>Paste</div>
                <div class="menu-sep"></div>
                <div>
                    <span>Toolbar</span>
                    <div>
                        <div>Address</div>
                        <div>Link</div>
                        <div>Navigation Toolbar</div>
                        <div>Bookmark Toolbar</div>
                        <div class="menu-sep"></div>
                        <div>New Toolbar...</div>
                    </div>
                </div>
                <div data-options="iconCls:'icon-remove'">Delete</div>
                <div>Select All</div>
            </div>
            <div id="mm2" style="width:100px;">
                <div>Help</div>
                <div>Update</div>
                <div>About</div>
            </div>
            <div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
                <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
                <p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
            </div>


        </div>
        <div data-options="region:'south',split:true" style="height:50px;">
            <center>©2019 Baidu 使用百度前必读 意见反馈 京ICP证030173号  京公网安备11000002000001号 </center>
        </div>
        <div data-options="region:'west',split:true" title="管理" style="width:200px;text-align:center">
            <ul id="menus">
                <li><a link="./views/user.html" href="javascript:void(0)">用户管理</a></li>
                <li><a link="./views/cate.html" href="javascript:void(0)">分类管理</a></li>
                <li><a link="./views/news.html" href="javascript:void(0)">新闻管理</a></li>
                <li><a link="./views/product.html" href="javascript:void(0)">产品管理</a></li>
                <li><a link="./views/order.html" href="javascript:void(0)">订单管理</a></li>

            </ul>
        </div>
        <div data-options="region:'center',title:'校园后台管理系统',iconCls:'icon-ok'" style="font-size:20px">

            <div id="tt" class="easyui-tabs" data-options="fit:true">



            </div>
        </div>

</body>

</html>

<script>
    var globalURL = 'http://10.31.162.63:3000/';

    $("#menus li a").click(function() {
        var link = $(this).attr('link');
        var title = $(this).text();
        addPanel(title, link);
    })


    function addPanel(title, link) {
        $('#tt').tabs('add', {
            title: title,
            content: `<iframe src="${link}" frameborder="0" style="width:100%;height:100%"></iframe>`,
            closable: true
        });
    }
    addPanel();


    $('#dg').datagrid({
        url: `${globalURL}`,
        fit: 'true',
        border: false,
        pagination: true,
        columns: [
            [{
                field: 'name',
                title: '用户名',
                width: 100
            }, {
                field: 'password',
                title: '密码'
            }]
        ],
        onClickRow: function(index, row) {
            console.log(index, row);
        }
    });

=======
<<<<<<< HEAD
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Basic Layout - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="./css/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="./css/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="./css/index.css">
	<script type="text/javascript" src="./js/jquery.min.js"></script>
	<script type="text/javascript" src="./js/jquery.easyui.min.js"></script>
</head>
<body>

	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'north'" style="height:50px">
			<div class="easyui-panel" style="padding:5px;">
				<a href="#" class="easyui-linkbutton" data-options="plain:true">Home</a>
				<a href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">Edit</a>
				<a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">Help</a>
				<a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">About</a>
			</div>
			<div id="mm1" style="width:150px;">
				<div data-options="iconCls:'icon-undo'">Undo</div>
				<div data-options="iconCls:'icon-redo'">Redo</div>
				<div class="menu-sep"></div>
				<div>Cut</div>
				<div>Copy</div>
				<div>Paste</div>
				<div class="menu-sep"></div>
				<div>
					<span>Toolbar</span>
					<div>
						<div>Address</div>
						<div>Link</div>
						<div>Navigation Toolbar</div>
						<div>Bookmark Toolbar</div>
						<div class="menu-sep"></div>
						<div>New Toolbar...</div>
					</div>
				</div>
				<div data-options="iconCls:'icon-remove'">Delete</div>
				<div>Select All</div>
			</div>
			<div id="mm2" style="width:100px;">
				<div>Help</div>
				<div>Update</div>
				<div>About</div>
			</div>
			<div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
				<img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
				<p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
			</div>
		</div>
		<div data-options="region:'south',split:true" style="height:50px;">
			<center>copyright 2019</center>
		</div>
		<div data-options="region:'west',split:true" title="West" style="width:200px;">
            <ul id="menus">
                <li><a link="./views/user.html" href="javascript:void(0)">用户管理</a></li>
                <li><a link="./views/cate.html" href="javascript:void(0)">分类管理</a></li>
                <li><a link="./views/news.html" href="javascript:void(0)">新闻管理</a></li>
                <li><a link="./views/product.html" href="javascript:void(0)">产品管理</a></li>
                <li><a link="./views/order.html" href="javascript:void(0)">订单管理</a></li>
            </ul>
		</div>
		<div data-options="region:'center',title:'Main Title',iconCls:'icon-ok'">

            <div id="tt" class="easyui-tabs" data-options="fit:true">
		</div>
	</div>

</body>
</html>

<script>
$("#menus li a").click(function(){
    var link =  $(this).attr('link');
    var title = $(this).text();
    addPanel(title,link);
})


function addPanel(title,link){
    $('#tt').tabs('add',{
        title: title,
        content: `<iframe src="${link}" frameborder="0" style="width:100%;height:100%"></iframe>`,
        closable: true
    });
}
addPanel();


$('#dg').datagrid({
<<<<<<< HEAD
    url:'localhost:3000/users/list',
=======
<<<<<<< HEAD
    url:'http://10.31.162.63:8080/users/list',
=======
    url:'http://10.31.162.63:8080/users',
>>>>>>> f3d1ae6a88acebc359be7ebdca3cfa8ca190673e
>>>>>>> c4163db9c5fb297125ef31187dec813085c44f25
    fit:'true',
    border:false,
    pagination:true,
    columns:[[
        {field:'name',title:'用户名',width:100},
        {field:'password',title:'密码'}
    ]],
    onClickRow:function(index,row){
        console.log(index,row);
    }
});

<<<<<<< HEAD
var globalURL = 'http://10.31.162.63:8080/';
=======
<<<<<<< HEAD
<<<<<<< HEAD
var globalURL = 'http://10.31.162.63:8080/';
=======
>>>>>>> f3d1ae6a88acebc359be7ebdca3cfa8ca190673e
=======
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Basic Layout - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="./css/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="./css/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="./css/index.css">
    <script type="text/javascript" src="./js/jquery.min.js"></script>
    <script type="text/javascript" src="./js/jquery.easyui.min.js"></script>
</head>

<body>

    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north'" style="height:50px">

            <div class="easyui-panel" style="padding:5px;">
                <a href="#" class="easyui-linkbutton" data-options="plain:true">Home</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">Edit</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">Help</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">About</a>
            </div>
            <div id="mm1" style="width:150px;">
                <div data-options="iconCls:'icon-undo'">Undo</div>
                <div data-options="iconCls:'icon-redo'">Redo</div>
                <div class="menu-sep"></div>
                <div>Cut</div>
                <div>Copy</div>
                <div>Paste</div>
                <div class="menu-sep"></div>
                <div>
                    <span>Toolbar</span>
                    <div>
                        <div>Address</div>
                        <div>Link</div>
                        <div>Navigation Toolbar</div>
                        <div>Bookmark Toolbar</div>
                        <div class="menu-sep"></div>
                        <div>New Toolbar...</div>
                    </div>
                </div>
                <div data-options="iconCls:'icon-remove'">Delete</div>
                <div>Select All</div>
            </div>
            <div id="mm2" style="width:100px;">
                <div>Help</div>
                <div>Update</div>
                <div>About</div>
            </div>
            <div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
                <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
                <p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
            </div>


        </div>
        <div data-options="region:'south',split:true" style="height:50px;">
            <center>copyright 2019</center>
        </div>
        <div data-options="region:'west',split:true" title="West" style="width:200px;">
            <ul id="menus">
                <li><a link="./views/user.html" href="javascript:void(0)">用户管理</a></li>
                <li><a link="./views/cate.html" href="javascript:void(0)">分类管理</a></li>
                <li><a link="./views/news.html" href="javascript:void(0)">新闻管理</a></li>
                <li><a link="./views/product.html" href="javascript:void(0)">产品管理</a></li>
                <li><a link="./views/order.html" href="javascript:void(0)">订单管理</a></li>

            </ul>
        </div>
        <div data-options="region:'center',title:'Main Title',iconCls:'icon-ok'">

            <div id="tt" class="easyui-tabs" data-options="fit:true">



            </div>
        </div>

</body>

</html>

<script>
    $("#menus li a").click(function() {
        var link = $(this).attr('link');
        var title = $(this).text();
        addPanel(title, link);
    })


    function addPanel(title, link) {
        $('#tt').tabs('add', {
            title: title,
            content: `<iframe src="${link}" frameborder="0" style="width:100%;height:100%"></iframe>`,
            closable: true
        });
    }
    addPanel();


    $('#dg').datagrid({
        url: 'http://localhost:3000',
        fit: 'true',
        border: false,
        pagination: true,
        columns: [
            [{
                field: 'name',
                title: '用户名',
                width: 100
            }, {
                field: 'password',
                title: '密码'
            }]
        ],
        onClickRow: function(index, row) {
            console.log(index, row);
        }
    });

    // var globalURL = 'http://localhost:3000/';
>>>>>>> 71cf024cfdc70f550f764ebaff25339cafefbf0f
>>>>>>> c4163db9c5fb297125ef31187dec813085c44f25
>>>>>>> 3149a29e1f592792f6fc605dcbab84b249ce65e1
</script>